<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>ts学习</title>
    <style>
    .box {
      width: 100px;
      height: 100px;
      background: red;
      position: fixed;
      top: 0;
      left: 0;
    }
  </style>
</head>
<body>
  <div class="box"></div>
  <script>
    const box = document.querySelector('.box')
    console.log(11, box.style.left)
    box.style.left = 100 + 'px'
  </script>
</body>
</html>
